import java.util.Scanner;

public class Test {
    /*public static int add(int x,int y){
        int c=x+y;
        return c;
    }

    public static void main(String[] args) {
        int a=10;
        int b=20;
        int c=add(a,b);
        System.out.println(c);
    }

     */
    public static boolean compare(int a,int b){
        boolean c=(a==b);
        return c;
    }

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int a= scan.nextInt();
        int b= scan.nextInt();
        boolean x=compare(a,b);
        System.out.println(x);;
    }
}


